I know how to overload the [] operator, but I cant seem to figure out how to to overload it so I can use the operator to access multidemensional arrays.
my way to overload is
but clearly this doesnt work for multiple dimension. thanks for any assistance.Code:const type& operator[](const int& pos) { return Var[pos]; }